﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Business_View.aspx.cs" Inherits="Business_Business_View" MasterPageFile="../SelectMasterPage.master" %>
<%@ Import Namespace="Common" %>
<%@ Import Namespace="DAL" %>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">

    <table cellpadding="0" cellspacing="2" width="100%" border="0">
	<tr>
		<td width="85%" valign="top">
		<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
			<tr>
		        <td class="leftTd"  valign="top">
		        <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
		        	<tr>
		            	<td class="titleStyle">任务查看</td>
		            </tr>
		        </table>
		        <br />
		        <table cellpadding="0" cellspacing="1" width="100%" border="0" style="background:#000066;">
	                    <tr>
	                        <td class="leftContent">任务类型：</td>
	                        <td class="RightContent"><%=  new News().GetClsName(news.ClsID) %></td>
	                    </tr>
	                     <%  if ( news.ClsID.Contains("4"))
                            { %>
	                    <tr>
	                        <td class="leftContent" valign="top" style="padding-top:5px;">送/取：</td>
	                        <td class="RightContent"><%= news.Fetch_FetchType%> - <%= News.GetFetchContent(news.Fetch_FetchType, Convert.ToInt32(news.Fetch_FetchID))%></td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent" valign="top" style="padding-top:5px;">报价单号：</td>
	                        <td class="RightContent"><%= news.Fetch_DanNum%></td>
	                    </tr><% } %>
	                    <%  if (news.ClsID.Contains("6") )
                            { %>
                        <tr>
	                        <td class="leftContent" valign="top" style="padding-top:5px;">物品：</td>
	                        <td class="RightContent">
	                        <%= news.Quote_StockType%> - <%= News.GetQuoteContentLink(news.Quote_StockType, Convert.ToInt32(news.Quote_StockID))%>
	                        </td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent" valign="top" style="padding-top:5px;">是否报价：</td>
	                        <td class="RightContent"><%= news.Quote_IsQuote%>：<%=news.Quote_Price %></td>
	                    </tr><% } %>
	                    <tr>
	                        <td class="leftContent" valign="top" style="padding-top:5px;">预约描述：</td>
	                        <td class="RightContent"><%= news.Content_Cus %></td>
	                    </tr>
		                <tr>
		                    <td class="leftContent">指定技术人员：</td>
		                    <td class="RightContent">
		                      <%= new Account().GetAccountName(news.MUserKey)  %>
		                    </td>
		                </tr>
	                    <tr>
	                        <td class="leftContent">预约上限时间：</td>
	                        <td class="RightContent"><%= news.TechOneTime %></td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">预约下限时间：</td>
	                        <td class="RightContent"><%= news.TechTwoTime %></td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">报修人公司：</td>
	                        <td class="RightContent"><%= news.UserCompany %></td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">报修人姓名：</td>
	                        <td class="RightContent"><%= news.UserName %></td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">报修人联系方式：</td>
	                        <td class="RightContent"><%= news.UserNameTEL %></td>
	                    </tr>
	                     <tr>
	                        <td class="leftContent">协调备注：</td>
	                        <td class="RightContent"><%= news.Content_Scheduling %></td>
	                    </tr>
	                     <tr>
	                        <td class="leftContent">任务处理：</td>
	                        <td class="RightContent">
                               
                                <table id="tb_Do" runat="server" visible="false" cellpadding="0" cellspacing="0" width="100%" border="0" align="center" style="background:#000066;">
	                                <tr>
	                                    <td class="leftContent">处理状态：</td>
	                                    <td class="RightContent">
                                        <%= WebUtility.GetTypeName(news.Type) %>
                                        </td>
	                                </tr>
	                                <tr>
	                                    <td class="leftContent">处理上限时间：</td>
	                                    <td class="RightContent">
                                            <asp:Label ID="TechFivTime" runat="server" Text=""></asp:Label></td>
	                                </tr>
	                                <tr>
	                                    <td class="leftContent">处理下限时间：</td>
	                                    <td class="RightContent"><asp:Label ID="TechSixTime" runat="server" Text=""></asp:Label></td>
	                                </tr>
	                                 <tr>
	                                    <td class="leftContent">故障描述：</td>
	                                    <td class="RightContent"><%= news.Content_Tech_Online%></td>
	                                </tr>
	                                <tr>
	                                    <td class="leftContent">处理过程：</td>
	                                    <td class="RightContent"><%= news.Content_Tech %></td>
	                                </tr>
	                                <tr>
	                                    <td class="leftContent">处理结果：</td>
	                                    <td class="RightContent"><%= news.Content_Tech_Result %></td>
	                                </tr>
	                            </table>
                            </td>
	                    </tr>
	                     <tr>
	                        <td class="leftContent">考勤状态：</td>
	                        <td class="RightContent"><%= string.IsNullOrEmpty(news.HuiDan)?"正常":news.HuiDan %></td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">交通费：</td>
	                        <td class="RightContent"><%= WebUtility.DecimalToString(news.JTfee) %></td>
	                    </tr>
	                    <% if (news.Content_Cus_PingNum > 0) { %>
	                    <tr>
	                        <td class="leftContent">客户评价：</td>
	                        <td class="RightContent"><%=  news.Content_Cus_Ping %></td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">客户评分：</td>
	                        <td class="RightContent"><%=  news.Content_Cus_PingNum%></td>
	                    </tr><% } %>
	                    <% if (news.Content_Cus_RecallNum > 0) { %>
	                    <tr>
	                        <td class="leftContent">客户回访：</td>
	                        <td class="RightContent"><%=  news.Content_Cus_Recall %></td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">客户回访评分：</td>
	                        <td class="RightContent"><%=  news.Content_Cus_RecallNum %></td>
	                    </tr><% } %>
	                 </table>
	                 
				</td>
		    </tr>
		</table>
        </td>
    </tr>
</table>
</asp:Content>

